{extend name="base" /}
{block name="css"}
<link rel="stylesheet" type="text/css" href="__ADMIN__/js/mmgrid/mmGrid.css?v={$v}" />
{/block}
{block name="js"}
<script src="__ADMIN__/js/mmgrid/mmGrid.js?v={$v}" type="text/javascript"></script>
<script src="__ADMIN__/users/users.js?v={$v}" type="text/javascript"></script>
{/block}
{block name="main"}
<div id='alertTips' class='alert alert-success alert-tips fade in'>
  <div id='headTip' class='head'><i class='fa fa-lightbulb-o'></i>操作说明</div>
  <ul class='body'>
      <li>本功能主要用于管理会员（商家的会员身份）资料，您可以通过各种条件查询会员资料。</li>
      <li>本功能主要以买家身份涉及的资料为主，例如买家的积分，资金和消费记录。商家资金在财务模块的资金管理中查看。</li>
  </ul>
</div>
<div class="wst-toolbar">
  <form autocomplete="off" >
   <div id="query" style="float:left;">
        <select name="userType" id="userType" class="query">
          <option value="">会员类型</option>
          <option value="0">普通会员</option>
          <option value="1">商家</option>
        </select>
        <input type="text" name="loginName1"  placeholder='账号/店铺名称' id="loginName1" class="query" />
        <input type="text" name="loginPhone" placeholder='手机号码' id="loginPhone" class="query" />
        <input type="text" name="loginEmail" placeholder='电子邮箱' id="loginEmail" class="query" />
        <button type="button" class="btn btn-primary" onclick="javascript:userQuery()" ><i class="fa fa-search"></i>查询</button> 
  </div>

   {if WSTGrant('HYGL_01')}
   <button type="button" class="btn btn-success f-right" style='margin-top:3px;' onclick="javascript:toEdit()"><i class="fa fa-plus"></i>新增</button> 
   {/if}
   <div style="clear:both"></div>
</form>
</div>
<div class='wst-grid'>
<div id="mmg" class="mmg"></div>
<div id="pg" style="text-align: right;"></div>
</div>
<script>
  $(function(){initGrid()});
</script>
{/block}